<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateSystemMenuTable extends Migration
{
    public function up()
    {
        Schema::create('system_menu', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('pid', false, true)->default(0);
            $table->string('title', 30)->default('');
            $table->string('icon', 100)->default('');
            $table->string('color', 100)->default('');
            $table->string('node', 100)->default('');
            $table->string('parameter', 100)->default('');
            $table->tinyInteger('orders', false, true)->default(0);
            $table->tinyInteger('status', false, true)->default(0);
            $table->timestamps();
        });
    }

    public function down()
    {
        Schema::dropIfExists('system_menu');
    }
}
